package com.aerfafish.spider.neo4j.repository;

import com.aerfafish.spider.neo4j.dao.Company;
import org.springframework.data.neo4j.annotation.Query;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.repository.query.Param;

/**
 * @author aerfafish
 * @date 2021/4/23 10:23 上午
 */
public interface CompanyRepository extends Neo4jRepository<Company, Long> {

    @Query("merge (company:Company{code: $code})")
    void save(@Param("code") String code);

}
